import entity.News;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.NewsService;
import service.NewsServiceImpl;

import java.util.List;

public class test1 {
//    @Test
//    public void test() {
//        ApplicationContext ac = new ClassPathXmlApplicationContext("spring.xml");
//        NewsService newsService = (NewsService) ac.getBean("newsService");
//        List<News> newsList = newsService.getNewList();
//        System.out.println(newsList.size());
//    }


}
